autoload -U colors && colors       

NEWLINE=$'\n'
PROMPT="${NEWLINE}%{$fg[cyan]%}%d${NEWLINE}%{$fg[green]%}%B%T%b%{$reset_color%} %#> "

export CLICOLOR=1

autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*'

function len() {
    echo -n "$1" | wc -m
}

function fullpath() {
    dir=$(dirname $1)
    filename=$(basename $1)
    dirpath=$(cd $dir;pwd)
    echo $dirpath/$filename
}
